<#ftl/>
package ${entityPackage};

<#if swagger>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
</#if>
import com.qhkj.engineering.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * <p>
 * ${table.comment!}
 * </p>
 * @author ${author}
 * @since ${date}
 */

@Data
@Accessors(chain = true)
<#if swagger>
@ApiModel(value = "${entity}对象", description = "${table.comment!}实体")
</#if>
@TableName(value = "${table.name}", autoResultMap = true)
public class ${entity}<#if entityExtendBase> extends BaseEntity</#if>{
<#-- ----------  BEGIN 字段循环遍历  ---------->
<#list table.fields as field>
    <#if entityExtendBase && BASE_ENTITY_FIELDS?seq_contains(field.propertyName)>
    <#else>
    <#if field.comment!?length gt 0><#if swagger>
    /**
      * ${field.comment}
    */
    @ApiModelProperty("${field.comment}")<#else>
    /**
     * ${field.comment}
     */</#if></#if><#if field.keyFlag>
    @TableId(type = IdType.AUTO)</#if><#if field.columnType.type=="LocalDateTime"||field.columnType.type=="Date">
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")</#if>
    private ${field.propertyType} ${field.propertyName};

    </#if>
</#list>
<#------------  END 字段循环遍历  ---------->
}
